package com.yiren.manager.form.elder;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.yiren.core.form.GenericForm;
import com.yiren.manager.utils.CustomJsonDateDeserializer;
import com.yiren.manager.utils.CustomSimpleDateDeserializer;

public class YrElderMemContactForm extends GenericForm{

	private static final long serialVersionUID = -7197029349163486957L;

	private String elderMemContactsId;

 	@DateTimeFormat(pattern="yyyy-MM-dd") 
	private Date birthday;

	private String cardId;

	private String createId;

 	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")  
	private Date createTime;

	private String elderId;

	private String email;

	private String liveAddress;

	private String name;

	private String phoneNumber;

	private String relationship;

	private String remark;

	private Integer sex;

	private String unitsAddress;

	private String updateId;

 	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")  
	private Date updateTime;

	private String workUnits;

	private String recorder;
	
	private YrElderForm elderForm;
	
	public YrElderForm getElderForm() {
		return elderForm;
	}

	public void setElderForm(YrElderForm elderForm) {
		this.elderForm = elderForm;
	}

	public String getRecorder() {
		return recorder;
	}

	public void setRecorder(String recorder) {
		this.recorder = recorder;
	}

	public String getElderMemContactsId() {
		return elderMemContactsId;
	}

	public void setElderMemContactsId(String elderMemContactsId) {
		this.elderMemContactsId = elderMemContactsId;
	}

	public Date getBirthday() {
		return birthday;
	}

	@JsonDeserialize(using=CustomSimpleDateDeserializer.class)
	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}

	public String getCardId() {
		return cardId;
	}

	public void setCardId(String cardId) {
		this.cardId = cardId;
	}

	public String getCreateId() {
		return createId;
	}

	public void setCreateId(String createId) {
		this.createId = createId;
	}

	public Date getCreateTime() {
		return createTime;
	}

	@JsonDeserialize(using=CustomJsonDateDeserializer.class)
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getElderId() {
		return elderId;
	}

	public void setElderId(String elderId) {
		this.elderId = elderId;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getLiveAddress() {
		return liveAddress;
	}

	public void setLiveAddress(String liveAddress) {
		this.liveAddress = liveAddress;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPhoneNumber() {
		return phoneNumber;
	}

	public void setPhoneNumber(String phoneNumber) {
		this.phoneNumber = phoneNumber;
	}

	public String getRelationship() {
		return relationship;
	}

	public void setRelationship(String relationship) {
		this.relationship = relationship;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Integer getSex() {
		return sex;
	}

	public void setSex(Integer sex) {
		this.sex = sex;
	}

	public String getUnitsAddress() {
		return unitsAddress;
	}

	public void setUnitsAddress(String unitsAddress) {
		this.unitsAddress = unitsAddress;
	}

	public String getUpdateId() {
		return updateId;
	}

	public void setUpdateId(String updateId) {
		this.updateId = updateId;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	@JsonDeserialize(using=CustomJsonDateDeserializer.class)
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public String getWorkUnits() {
		return workUnits;
	}

	public void setWorkUnits(String workUnits) {
		this.workUnits = workUnits;
	}
	
}
